﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GaugeEngine.Process
{
    public abstract class IProcess
    {
        protected bool m_kill = false;

        protected IProcess m_next;
        public IProcess Next
        {
            get { return m_next; }
            set { m_next = value; }
        }

        public void kill()
        {
            m_kill = true;
        }

        public bool Finished()
        {
            return m_kill;
        }

        abstract public void onUpdate(GameTime dt);
    }
}
